PHY MAKE CYLINDRICAL JOINT

Make a new cylindrical joint.

  Syntax
PHY MAKE CYLINDRICAL JOINT ID, A, B, anchorX#, anchorY#, anchorZ#, axisX#, axisY#, axisz#
PHY MAKE CYLINDRICAL JOINT ID, A, B
  Parameters
ID
Integer
identification number of the joint, joint ID numbers are unique
A
Integer
first rigid body object to be attached to the joint, must be a valid rigid body
B
Integer
second rigid body object to be attached to the joint, must be a valid rigid body
anchorX#
Float
anchor point on X axis
anchorY#
Float
anchor point on Y axis
anchorZ#
Float
anchor point on Z axis
axisX#
Float
direction on X axis
axisY#
Float
direction on Y axis
axisz#
Float
direction on Z axis

  Returns

  Description

There are two approaches to creating a cylindrical joint. The command can be called passing in a full set of parameters to create the joint in one line ( some defaults are used when this is the case ). If you choose this option then the joint is built straight away. Alternatively make a cylindrical joint passing in three parameters and then proceed to set properties such as the local anchor etc and finally build the joint using phy build cylindrical joint. The second option for creating a cylindrical joint may be preferable when you want complete control over the settings.

Note that joint ID numbers are unique and not shared with any other ID ranges therefore it is perfectly valid to have a model loaded into ID 1 and a joint with an ID of 1.

  Example Code
No example code is provided for this command